<template>
	<view>
		<rich-text :nodes="content"></rich-text>
	</view>
</template>

<script>
	export default{
		data(){
			return {
				content: ''
			}
		},
		onLoad() {
				this.getContent();
		},
		methods:{
			async getContent() {
				try {
					let data = await this.$u.api.getAccountQrCode();
					if (data) {
						this.content = `<img src="${data.url}" style="max-width:100%">`;
					}
				} catch (e) {
					this.content = `<img src="https://www.qidzn.com/static/wechat_pic/ewm.jpg" style="max-width:100%">`;
				}
			}
		}
	}
</script>

<style lang="scss" scoped>
	
</style>
